package com.demo.project_template.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 地址表
 * </p>
 *
 * @author 杨玉龙
 * @since 2023-06-19 15:56:43
 */
@Data
@TableName("t_address")
@ApiModel(value = "Address对象", description = "地址表")
public class Address implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("地址表PK")
      @TableId(value = "address_id", type = IdType.AUTO)
    private Integer addressId;

    @ApiModelProperty("用户表PK")
    @TableField("user_id")
    private Integer userId;

    @ApiModelProperty("收货人姓名")
    @TableField("rec_name")
    private String recName;

    @ApiModelProperty("手机号")
    @TableField("rec_mobile")
    private String recMobile;

    @ApiModelProperty("地址状态(ENABLE=普通地址, DEFAULT=默认地址)")
    @TableField("address_status")
    private String addressStatus;

    @ApiModelProperty("地址省市区")
    @TableField("address")
    private String address;

    @ApiModelProperty("详细地址")
    @TableField("address_details")
    private String addressDetails;

    @ApiModelProperty("是否删除(0=否，1=是)")
    @TableField("is_delete")
    @TableLogic
    private Integer isDelete;

    @ApiModelProperty("创建时间")
      @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty("更新时间")
      @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;


}
